<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<h2 class="contentTitle">管理员添加</h2>
<div class="pageContent">
	<form method="post" action="${rootPath }/back/admins/adminsInsertSubmit.htm"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this)">
		
		<%-- 传值 --%>
		<input type="hidden" name="navTabId" value="">
		
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>角色：</dt>
				<dd>
					<select name="roleId">
						<c:forEach items="${requestScope.roleList }" var="role" varStatus="stat">
							<option value="${role.id }">${role.name }</option>
						</c:forEach>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>邮箱：</dt>
				<dd>
					<input type="text" name="email" class="required email"
						alt="请输入您的邮箱" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="adminsInsertPass" type="password" name="password" alt="请输入您的密码"
						class="required alphanumeric" minlength="6" maxlength="20"
						alt="字母、数字、下划线 6-20位" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd>
					<input type="password" name="repassword" class="required"  alt="请输入您的确认密码"
						equalto="#adminsInsertPass" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>姓名：</dt>
				<dd>
					<input type="text" name="name" maxlength="20" class="required"  alt="请输入您的姓名"/>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>手机：</dt>
				<dd>
					<input type="text" name="phone" class="phone" alt="请输入您的手机" /> <span
						class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>qq：</dt>
				<dd>
					<input type="text" name="qq" class="digits" alt="请输入您的qq"/>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>性别：</dt>
				<dd>
					<input type="radio" name="sex" value="0" id="adminsInsertSex0" checked="checked"/>
					<label for="adminsInsertSex0">保密</label>
					<input type="radio" name="sex" value="1" id="adminsInsertSex1"/>
					<label for="adminsInsertSex1">男</label>
					<input type="radio" name="sex" value="2" id="adminsInsertSex2"/>
					<label for="adminsInsertSex2">女</label>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>状态：</dt>
				<dd>
					<input type="radio" name="status" value="1" id="adminsInsertStatus1" checked="checked"/>
					<label for="adminsInsertStatus1">启用</label>
					<input type="radio" name="status" value="0" id="adminsInsertStatus0"/>
					<label for="adminsInsertStatus0">禁用</label>
				</dd>
			</dl>
			<div class="divider"></div>
			<p></p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>

</div>


<script type="text/javascript">
	function customvalidXxx(element) {
		if ($(element).val() == "xxx")
			return false;
		return true;
	}
</script>
